package com.lichongbing.lyoggl.mapper;

import com.lichongbing.lyoggl.model.TimeLine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Component;

/**
 * @Entity com.lichongbing.lyoggl.model.TimeLine
 */
@Component
public interface TimeLineMapper extends BaseMapper<TimeLine> {
    // INSERT INTO lyoggl.time_line
    //(id, name, `start`, stop, duration, descriptions, tags, state)
    //VALUES('e38736f9656b4ba19e37a1ec2b0a4f96', 'iOS企业级Swift项目实战之我的云音乐（第一部分）-1-项目功能演示-任苹蜻的在线视频教程', '2021/12/26 上午3:05:08', '2021/12/26 上午3:32:54', NULL, 'https://edu.csdn.net/learn/25636/308241', 'iOS企业级Swift项目实战之我的云音乐（第一部分）-1-项目功能演示-任苹蜻的在线视频教程', '0');
    TimeLine findByCurent();
    @Insert("INSERT IGNORE INTO lyoggl.time_line (id,name,`start`, descriptions,tags) VALUES (#{id},#{name},#{start},#{descriptions},#{tags}")
    int inserts(String id, String name, String start, String descriptions, String tags);

    String  addtime(String id, String oldoutid,String name, String start, String descriptions, String tags);
}




